<!-- Header starts -->

<!-- JS -->
<script src="js/jquery.js"></script>
<!-- jQuery -->
<script src="js/bootstrap.js"></script>
<!-- Bootstrap -->
<script src="js/jquery.prettyPhoto.js"></script>
<!-- Pretty Photo -->
<script src="js/filter.js"></script>
<!-- Filter for support page -->
<script src="js/jquery.tweet.js"></script>
<!-- Twitter -->
<script src="js/jquery.flexslider-min.js"></script>
<!-- Flex slider -->
<script src="js/nav.js"></script>
<!-- Sidebar navigation -->
<script src="js/jquery.carouFredSel-6.1.0-packed.js"></script>
<!-- Carousel for recent posts -->
<script src="js/custom.js"></script>

<header>
<div class="container">
<div class="row">

<div class="span4">
<!-- Logo. Use class "color" to add color to the text. -->
<div class="logo">
<h1><a href="#">Nhóm <span class="color bold">2</span></a></h1>
<p class="meta">
Phát triển ứng dụng HTTT hiện đại
</p>
</div>
</div>

<div class="span5 offset3">

<!-- Search form -->
<form class="form-search">
<div class="input-append">
<input class="span3" id="appendedInputButton" type="text" placeholder="Nhập tên sản phẩm">
<button class="btn" type="button">
Tìm kiếm
</button>
</div>
</form>

<div class="hlinks">
<span class='lr' id='userLogin'>
<?php
if (!isset($_SESSION["userID"])) {
?>
	<a href='#form_login' role='button' data-toggle='modal'>Đăng nhập</a> | <a href='#form_register' role='button' data-toggle='modal'>Đăng ký</a>
<?php 
} else {
	echo "Đăng nhập bởi: " . $_SESSION["userEmail"] . " | <a href='javascript:void(0);' onClick = 'logout()' role='button'>Đăng xuất</a>";
}
?></span>
</div>

</div>

</div>
</div>
</header>

<?php
include 'login_form.php';
include 'register_form.php';
?>
